<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="box"></div>
    <div class="box"></div>
    <div id="box"></div>
    <div id="box"></div>
       <div>
          <span id="ss">
              <p>123456</p>
              <h1></h1>
              <h1></h1>
              <h2></h2>
              <h2></h2>
          </span>
       </div>
</body>
<script>
    // var obox = document.getElementById()
    // var obox = document.getElementById()
    // var obox = document.querySelector('.box')
    // var obox = document.querySelector('#box')
    // var obox = document.querySelector('span')
    // var obox = document.querySelector('input[name=password]')
    // var obox = document.querySelectorAll('.box')
    // var obox = document.querySelectorAll('*')

    var obox = document.querySelector('span')
    console.log(obox)
    // console.log(obox.children)
     console.log(obox.parentNode)
     console.log(document.body)
     console.log(document.head)
     console.log(document.html)
     console.log(document.title)
     console.log(document.documentElement)

</script>
</html>